<?php 
    if($page=='login'){
        // if user has not been logged in
        $page = $this->load->view('bodyleft/login','',TRUE);
    }else if($page=='loggedin'){
        // if user has been logged in
        $page = $this->load->view('bodyleft/loggedin',$userdata,TRUE);
    }
    echo $page;
?>
